<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Font - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
	<h1 translate="no">Font</h1>
		<section>
			<header>
				<div class="class-description"><p>Class representing a font.</p></div>
			</header>
			<article>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="Font" translate="no">new <a href="#Font">Font</a><span class="signature">( data : <span class="param-type">Object</span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Constructs a new font.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>data</strong>
									</td>
									<td class="description last">
										<p>The font data as JSON.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<h2 class="subsection-title">Properties</h2>
				<div class="member">
					<h3 class="name" id="data" translate="no">.<a href="#data">data</a><span class="type-signature"> : Object</span> </h3>
					<div class="description">
						<p>The font data as JSON.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="isFont" translate="no">.<a href="#isFont">isFont</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
					<div class="description">
						<p>This flag can be used for type testing.</p>
						<p>Default is <code>true</code>.</p>
					</div>
				</div>
				<h2 class="subsection-title">Methods</h2>
					<h3 class="name name-method" id="generateShapes" translate="no">.<a href="#generateShapes">generateShapes</a><span class="signature">( text : <span class="param-type">string</span>, size : <span class="param-type">number</span>, direction : <span class="param-type">string</span> )</span><span class="type-signature"> : Array.&lt;<a href="Shape.html">Shape</a>></span> </h3>
					<div class="method">
						<div class="description">
							<p>Generates geometry shapes from the given text and size. The result of this method
should be used with <a href="ShapeGeometry.html">ShapeGeometry</a> to generate the actual geometry data.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>text</strong>
									</td>
									<td class="description last">
										<p>The text.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>size</strong>
									</td>
									<td class="description last">
										<p>The text size.</p>
										<p>Default is <code>100</code>.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>direction</strong>
									</td>
									<td class="description last">
										<p>Char direction: ltr(left to right), rtl(right to left) &amp; tb(top bottom).</p>
										<p>Default is <code>'ltr'</code>.</p>
									</td>
								</tr>
							</tbody>
						</table>
						<dl class="details">
							<dt class="tag-returns"><strong>Returns:</strong> An array of shapes representing the text.</dt>
						</dl>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/loaders/FontLoader.js" translate="no" target="_blank" rel="noopener">examples/jsm/loaders/FontLoader.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>